package com.zrzhen.springbootdemo.common.http.asyncHttp;


import org.asynchttpclient.AsyncCompletionHandler;
import org.asynchttpclient.Response;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class ApiAsyncCompletionHandler extends AsyncCompletionHandler<String> {

    private static final Logger LOGGER = LoggerFactory.getLogger(ApiAsyncCompletionHandler.class);

    @Override
    public String onCompleted(Response response) throws Exception {
        return response.getResponseBody();
    }

}
